tools: Use os.system instead of exec to start xentop.
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 12 Dec 2007 10:04:29 +0000 (10:04 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 12 Dec 2007 10:04:29 +0000 (10:04 +0000)
This makes no difference to the visible behaviour of "xm top" but
avoids the whole of xm from quitting if you're in "xm shell".  This
provides the more intuitive behaviour of returning to the xm shell
interface after leaving xm top.

Signed-off-by: Mark Williamson <mark.williamson@cl.cam.ac.uk>
tools/python/xen/xm/main.py

index 59105a8f86c311ff9eb5f4e7564ace5aa4c459e1..a736247f2e380db075f1eaf8631f0f0089fe89d3 100644 (file)
@@ -1833,7 +1833,7 @@ def xm_debug_keys(args):
 def xm_top(args):
     arg_check(args, "top", 0)
 
-    os.execvp('xentop', ['xentop'])
+    os.system('xentop')
 
 def xm_dmesg(args):
     arg_check(args, "dmesg", 0, 1)